Don't unnecessarily clear windows with no exposure mask set
authorAlexander Larsson <alexl@redhat.com>
Wed, 4 Nov 2009 13:03:04 +0000 (14:03 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 5 Nov 2009 11:52:12 +0000 (12:52 +0100)
commit9e51c10edc50333997a28c221b200cc6f83bdcef
treefcdc6c77970e7c6b8dded098613f3ca87db03d3d
parent9ae0d9a44f785564a9b100a58b34a9dcabf61724
Don't unnecessarily clear windows with no exposure mask set

When we just invalidate some area from the app we don't need to clear
windows with no exposure mask, because that wouldn't have happened pre-csw
anyway. Additionally we can avoid such clearing for native windows in cases
where the xserver already did the clearing like on exposes or when resizing
toplevels.

This means we don't fully redraw a GtkSocket when it resizes, thus
avoiding flicker in gnome-mplayer as reported in this bug:
https://bugzilla.gnome.org/show_bug.cgi?id=598050
gdk/gdkwindow.c